﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using CMN.Models;
using CMN.Models.Interfaces;
using CMN.Entity;
using CMN.Controllers;
using CMN.Controllers.Filters;
using CMN.Common;
using System.Text;
using CMN.UI;
using CMN.Framework;
namespace CMN.Controllers
{
   
    [LoggerFilter()]
    [ExceptionFilter()]
    [ExecutionTimingAttribute()]
    public class SearchListController : Controller
    {
        [CompressFilter]
        [CacheFilterAttribute]
        public string Index(int pageIndex)
        {
            string strretrun = string.Empty;

            PageHelperEntity pageHelper = new PageHelperEntity();
            pageHelper.Type = PageType.IndexPage;
            if(pageIndex<1)
                pageIndex=1;
            pageHelper.PageIndex = pageIndex;
            pageHelper.Title = "";
            pageHelper.Url = "/searchlist/";
            BaseTemplateDisplay articleTemplate = new BaseTemplateDisplay(pageHelper);
            strretrun = articleTemplate.Display("searchlist.htm");
            articleTemplate.Dispose();
            return strretrun;

        }
        
        
    }
}
